package pers.youqu.item.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sun.org.apache.bcel.internal.generic.NEW;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pers.youqu.item.dto.SkuDTO;
import pers.youqu.item.dto.SpuDTO;
import pers.youqu.item.dto.SpuDetailDTO;
import pers.youqu.item.mapper.SpuDetailMapper;
import pers.youqu.item.po.SpuDetail;
import pers.youqu.item.service.SkuService;
import pers.youqu.item.service.SpuDetailService;

import java.util.List;

/**
 * @author Jason
 * @version 1.0.0
 * @date 2020/12/7 16:07
 * @Description TODO
 */
@Service
public class SpuDetailServiceImpl extends ServiceImpl<SpuDetailMapper, SpuDetail> implements SpuDetailService {

    @Override
    public SpuDetailDTO findSpuDetailBySpuId(Long spuId) {
        return new SpuDetailDTO(getById(spuId));
    }

}
